<!DOCTYPE html>
<html lang="<?php echo $lang; ?>">
    <head>
        <title><?php echo $title; ?></title>
        <base href="<?php echo $baseUrl; ?>" />
        <?php if ($description) { ?>
            <meta name="description" content="<?php echo $description; ?>" />
        <?php } ?>
        <?php if ($keywords) { ?>
            <meta name="keywords" content="<?php echo $keywords; ?>" />
        <?php } ?>
        <?php if ($icon) { ?>
            <link href="plurious/apps/web/view/images/favicon.ico" rel="favicon" />
        <?php } ?>
        <?php foreach ($links as $link) { ?>
            <link href="<?php echo $link['href']; ?>" rel="<?php echo $link['rel']; ?>" />
        <?php } ?>
        <link rel="stylesheet" type="text/css" href="plurious/apps/web/view/css/stylesheet.css" />
        <?php foreach ($styles as $style) { ?>
            <link rel="<?php echo $style['rel']; ?>" type="text/css" href="<?php echo $style['href']; ?>" media="<?php echo $style['media']; ?>" />
        <?php } ?>
        <script type="text/javascript" src="plurious/apps/web/view/javascript/jquery/jquery-1.6.1.min.js"></script>
        <script type="text/javascript" src="plurious/apps/web/view/javascript/jquery/ui/jquery-ui-1.8.16.custom.min.js"></script>
        <link rel="stylesheet" type="text/css" href="plurious/apps/web/view/javascript/jquery/ui/themes/ui-lightness/jquery-ui-1.8.16.custom.css" />
        <script type="text/javascript" src="plurious/apps/web/view/javascript/jquery/ui/external/jquery.cookie.js"></script>
        <script type="text/javascript" src="plurious/apps/web/view/javascript/jquery/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
        <link rel="stylesheet" type="text/css" href="plurious/apps/web/view/javascript/jquery/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
        <!--[if IE]>
        <script type="text/javascript" src="plurious/apps/web/view/javascript/jquery/fancybox/jquery.fancybox-1.3.4-iefix.js"></script>
        <![endif]--> 
        <script type="text/javascript" src="plurious/apps/web/view/javascript/jquery/tabs.js"></script>
        <script type="text/javascript" src="plurious/apps/web/view/javascript/common.js"></script>
        <?php foreach ($scripts as $script) { ?>
            <script type="text/javascript" src="<?php echo $script; ?>"></script>
        <?php } ?>
        <!--[if IE 7]>
        <link rel="stylesheet" type="text/css" href="plurious/apps/web/view/css/ie7.css" />
        <![endif]-->
        <!--[if lt IE 7]>
        <link rel="stylesheet" type="text/css" href="plurious/apps/web/view/css/ie6.css" />
        <script type="text/javascript" src="plurious/apps/web/view/javascript/DD_belatedPNG_0.0.8a-min.js"></script>
        <script type="text/javascript">
        DD_belatedPNG.fix('#logo img');
        </script>
        <![endif]-->
        <?php echo $google_analytics; ?>
    </head>
    <body>
        <?php echo $content ?>
        <script>
        <?php
        foreach($inBodyScripts as $inBodyScript){ 
            echo $inBodyScript;
        }
        ?>
        </script>
    </body>
</html>